package com.dragon.modules.yuegou.model.points;

import com.dragon.modules.yuegou.entity.points.RateEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 积分与现金兑换配比表模型类
 * 
 * @author pbuilder generated
 * @date 2019-04-02 17:40:47
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Rate extends RateEntity {

	@ApiModelProperty("二级业态名称")
	private String secondBtype;//二级业态名称

	@ApiModelProperty("一级业态名称")
	private String firstBtype;//一级业态名称

	@ApiModelProperty("商户名称")
	private String merchantName;//商户名称

	@ApiModelProperty("线上积分配比名称")
	private String onlineRatioName;//商户名称

	@ApiModelProperty("线下积分配比名称")
	private String ratioName;//商户名称

	@ApiModelProperty("积分配比类型 0-线上，1-线下")
	private List<Integer> ratioList;

	public String getSecondBtype() {
		return secondBtype;
	}

	public void setSecondBtype(String secondBtype) {
		this.secondBtype = secondBtype;
	}

	public String getFirstBtype() {
		return firstBtype;
	}

	public void setFirstBtype(String firstBtype) {
		this.firstBtype = firstBtype;
	}

	public String getMerchantName() {
		return merchantName;
	}

	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}

	public String getOnlineRatioName() {
		return onlineRatioName;
	}

	public void setOnlineRatioName(String onlineRatioName) {
		this.onlineRatioName = onlineRatioName;
	}

	public String getRatioName() {
		return ratioName;
	}

	public void setRatioName(String ratioName) {
		this.ratioName = ratioName;
	}

	public List<Integer> getRatioList() {
		return ratioList;
	}

	public void setRatioList(List<Integer> ratioList) {
		this.ratioList = ratioList;
	}

	/**
	 * 构造一个空积分与现金兑换配比表模型对象
	 */
	public Rate(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个积分与现金兑换配比表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public Rate(RateEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个积分与现金兑换配比表模型对象
	 * 
	 * @param other 其它对象
	 */
	public Rate(Rate other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public Rate id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 * @return 当前对象
	 */
    public Rate busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getFirstBtypeId() {
    	return firstBtypeId;
    }

    /**
	 * 设置一级业态
	 * 
	 * @param firstBtypeId 一级业态
	 * @return 当前对象
	 */
    public Rate firstBtypeId(String firstBtypeId) {
    	this.firstBtypeId = firstBtypeId;
    	return this;
    }

	@Override
	public String getSecondBtypeId() {
    	return secondBtypeId;
    }

    /**
	 * 设置二级业态
	 * 
	 * @param secondBtypeId 二级业态
	 * @return 当前对象
	 */
    public Rate secondBtypeId(String secondBtypeId) {
    	this.secondBtypeId = secondBtypeId;
    	return this;
    }

	@Override
	public String getMerchantId() {
    	return merchantId;
    }

    /**
	 * 设置商铺id
	 * 
	 * @param merchantId 商铺id
	 * @return 当前对象
	 */
    public Rate merchantId(String merchantId) {
    	this.merchantId = merchantId;
    	return this;
    }

	@Override
	public String getWxShopName() {
    	return wxShopName;
    }

    /**
	 * 设置微信店铺名称
	 * 
	 * @param wxShopName 微信店铺名称
	 * @return 当前对象
	 */
    public Rate wxShopName(String wxShopName) {
    	this.wxShopName = wxShopName;
    	return this;
    }

	@Override
	public String getWxShopNumber() {
    	return wxShopNumber;
    }

    /**
	 * 设置微信店铺编号
	 * 
	 * @param wxShopNumber 微信店铺编号
	 * @return 当前对象
	 */
    public Rate wxShopNumber(String wxShopNumber) {
    	this.wxShopNumber = wxShopNumber;
    	return this;
    }
	@Override
	public String getRatio() {
    	return ratio;
    }

    /**
	 * 设置积分配比类型 多个 0,1
	 * 
	 * @param ratio 积分配比类型 多个 0,1
	 * @return 当前对象
	 */
    public Rate ratio(String ratio) {
    	this.ratio = ratio;
    	return this;
    }

	@Override
	public Integer getPoints() {
    	return points;
    }

    /**
	 * 设置线下积分
	 * 
	 * @param points 线下积分
	 * @return 当前对象
	 */
    public Rate points(Integer points) {
    	this.points = points;
    	return this;
    }

	@Override
	public Integer getOnlinePoints() {
    	return onlinePoints;
    }

    /**
	 * 设置线上积分
	 * 
	 * @param onlinePoints 线上积分
	 * @return 当前对象
	 */
    public Rate onlinePoints(Integer onlinePoints) {
    	this.onlinePoints = onlinePoints;
    	return this;
    }

	@Override
	public Integer getMoney() {
    	return money;
    }

    /**
	 * 设置现金
	 * 
	 * @param money 现金
	 * @return 当前对象
	 */
    public Rate money(Integer money) {
    	this.money = money;
    	return this;
    }

	@Override
	public Integer getOnlineMoney() {
    	return onlineMoney;
    }

    /**
	 * 设置
	 * 
	 * @param onlineMoney 
	 * @return 当前对象
	 */
    public Rate onlineMoney(Integer onlineMoney) {
    	this.onlineMoney = onlineMoney;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置创建人
	 * 
	 * @param createdBy 创建人
	 * @return 当前对象
	 */
    public Rate createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public Rate createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置修改人
	 * 
	 * @param modifiedBy 修改人
	 * @return 当前对象
	 */
    public Rate modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置修改时间
	 * 
	 * @param modifiedTime 修改时间
	 * @return 当前对象
	 */
    public Rate modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置是否删除：1-已删除；0-未删除
	 * 
	 * @param del 是否删除：1-已删除；0-未删除
	 * @return 当前对象
	 */
    public Rate del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置删除人
	 * 
	 * @param delBy 删除人
	 * @return 当前对象
	 */
    public Rate delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置删除时间
	 * 
	 * @param delTime 删除时间
	 * @return 当前对象
	 */
    public Rate delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }
}
